package com.atgm.mall.gmmailware.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName(value = "wms_ware_game")
public class WareGameEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 游戏id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long gameId;

    /**
     * 游戏名称
     */
    private String gameName;

    /**
     * 商品库存
     */
    private Integer gameStock;

    /**
     * 锁定库存
     */
    private Integer lockStock;
}
